angular.module("app").directive("fractionNum", function($location, $route) {
    return {
    	restrict: "A",
        link : function(scope, element, attrs) {
        	scope.$watch("fractionNum", function() {
                element.attr("href", element.attr("href"));
                element.bind("click", function(event) {
                    scope.$apply(function(){
                        $route.reload();
                    });
                });            
            });
        }  
    };  
});